home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / buildNewSceneUI.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  18.6 KB  |  636 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Description:
  22. //        This script is executed when a new scene file is created.  It will create
  23. //        panels if required or use existing panels.
  24. //
  25. //  Creation Date: 
  26. //  Author:         
  27. //
  28.  
  29. global proc buildNewSceneUI() {
  30.  
  31.     global string      $gMainPane;
  32.     global string   $gNewScenePanelConfig;
  33.     global int        $gUseNewScenePanelConfig;
  34.  
  35.     int    $menusOkayInPanels = `optionVar -q allowMenusInPanels`;
  36.     int    $useNewSceneConfig = $gUseNewScenePanelConfig;
  37.     string $panels[] = `getPanel -all`;
  38.  
  39.  
  40.     if (!$useNewSceneConfig && (size($panels) == 0)) {
  41.         //  
  42.         //  Currently no panels so use the new scene panels anyway.
  43.         //
  44.         $useNewSceneConfig = true;
  45.     }
  46.  
  47.  
  48.     if (`paneLayout -exists $gMainPane` && $useNewSceneConfig) {
  49.         //
  50.         //  Start building panels for the new scene.
  51.         //
  52.         int    $i;
  53.         int    $count = 0;
  54.         int    $nVis = `paneLayout -q -nvp $gMainPane`;
  55.         string $type;
  56.         string $types[4];
  57.         string $panelName;
  58.         string $editorName;
  59.         string $itemFilterName;
  60.         string $subFilter1, $subFilter2;
  61.  
  62.         //
  63.         //  get current state of the UI
  64.         //
  65.         sceneUIReplacement -update $gMainPane;
  66.  
  67.         //  Model Views
  68.         //
  69.         if (`exists modelPanel`) {
  70.  
  71.             $panelLabel = "Top View";
  72.             $panelName = `sceneUIReplacement -getNextPanel "modelPanel" $panelLabel`;
  73.             if ("" == $panelName) {
  74.                 $panelName = `modelPanel -mbv $menusOkayInPanels
  75.                     -parent $gMainPane -l "Top View" `;
  76.             } else {
  77.                 //
  78.                 //  Use an existing panel.
  79.                 //
  80.                 modelPanel -edit -l "Top View"  $panelName;
  81.             }
  82.             $editorName = $panelName;
  83.             modelEditor -e 
  84.                 -camera `findStartUpCamera top`
  85.                 -useInteractiveMode 0
  86.                 -displayLights "default" 
  87.                 -displayAppearance "wireframe" 
  88.                 -activeOnly 0
  89.                 -wireframeOnShaded 0
  90.                 -bufferMode "double" 
  91.                 -twoSidedLighting 1
  92.                 -backfaceCulling 0
  93.                 -xray 0
  94.                 -st 1
  95.                 -displayTextures 0
  96.                 -textureMaxSize 1024
  97.                 -nurbsCurves 1
  98.                 -nurbsSurfaces 1
  99.                 -polymeshes 1
  100.                 -subdivSurfaces 1
  101.                 -planes 1
  102.                 -lights 1
  103.                 -cameras 1
  104.                 -joints 1
  105.                 -ikHandles 1
  106.                 -deformers 1
  107.                 -dynamics 1
  108.                 -locators 1
  109.                 -dimensions 1
  110.                 -handles 1
  111.                 -pivots 1
  112.                 -textures 1
  113.                 -fogging 0
  114.                 -shadows 0
  115.                 -smoothWireframe 0
  116.                 -viewSelected false
  117.                 $editorName;
  118.  
  119.             if (`isTrue "MayaCreatorExists"` && 
  120.                 (`licenseCheck -m "edit" -typ "particlePaint"`)) {
  121.                 modelEditor -e -strokes 1 $editorName;
  122.             }
  123.  
  124.             // disable isolate select auto update
  125.             editor -edit -lck -mainListConnection "activeList" $editorName;
  126.  
  127.  
  128.             $panelLabel = "Side View";
  129.             $panelName = `sceneUIReplacement -getNextPanel "modelPanel" $panelLabel`;
  130.             if ("" == $panelName) {
  131.                 $panelName = `modelPanel -mbv $menusOkayInPanels
  132.                                          -parent $gMainPane -l $panelLabel`;
  133.             } else {
  134.                 modelPanel -edit -l $panelLabel $panelName;
  135.             }
  136.             $editorName = $panelName;
  137.             modelEditor -e 
  138.                 -camera `findStartUpCamera side`
  139.                 -useInteractiveMode 0
  140.                 -displayLights "default" 
  141.                 -displayAppearance "wireframe" 
  142.                 -activeOnly 0
  143.                 -wireframeOnShaded 0
  144.                 -bufferMode "double" 
  145.                 -twoSidedLighting 1
  146.                 -backfaceCulling 0
  147.                 -xray 0
  148.                 -st 1
  149.                 -displayTextures 0
  150.                 -textureMaxSize 1024
  151.                 -nurbsCurves 1
  152.                 -nurbsSurfaces 1
  153.                 -polymeshes 1
  154.                 -subdivSurfaces 1
  155.                 -planes 1
  156.                 -lights 1
  157.                 -cameras 1
  158.                 -joints 1
  159.                 -ikHandles 1
  160.                 -deformers 1
  161.                 -dynamics 1
  162.                 -locators 1
  163.                 -dimensions 1
  164.                 -handles 1
  165.                 -pivots 1
  166.                 -textures 1
  167.                 -fogging 0
  168.                 -shadows 0
  169.                 -smoothWireframe 0
  170.                 -viewSelected false
  171.                 $editorName;
  172.  
  173.             if (`isTrue "MayaCreatorExists"` && 
  174.                 (`licenseCheck -m "edit" -typ "particlePaint"`)) {
  175.                 modelEditor -e -strokes 1 $editorName;
  176.             }
  177.  
  178.             // disable isolate select auto update
  179.             editor -edit -lck -mainListConnection "activeList" $editorName;
  180.  
  181.  
  182.             $panelLabel = "Front View";
  183.             $panelName = `sceneUIReplacement -getNextPanel "modelPanel" $panelLabel`;
  184.             if ("" == $panelName) {
  185.                 $panelName = `modelPanel -mbv $menusOkayInPanels
  186.                                          -parent $gMainPane -l $panelLabel`;
  187.             } else {
  188.                 modelPanel -edit -l $panelLabel $panelName;
  189.             }
  190.             $editorName = $panelName;
  191.             modelEditor -e 
  192.                 -camera `findStartUpCamera front` 
  193.                 -useInteractiveMode 0
  194.                 -displayLights "default" 
  195.                 -displayAppearance "wireframe" 
  196.                 -activeOnly 0
  197.                 -wireframeOnShaded 0
  198.                 -bufferMode "double" 
  199.                 -twoSidedLighting 1
  200.                 -backfaceCulling 0
  201.                 -xray 0
  202.                 -st 1
  203.                 -displayTextures 0
  204.                 -textureMaxSize 1024
  205.                 -nurbsCurves 1
  206.                 -nurbsSurfaces 1
  207.                 -polymeshes 1
  208.                 -subdivSurfaces 1
  209.                 -planes 1
  210.                 -lights 1
  211.                 -cameras 1
  212.                 -joints 1
  213.                 -ikHandles 1
  214.                 -deformers 1
  215.                 -dynamics 1
  216.                 -locators 1
  217.                 -dimensions 1
  218.                 -handles 1
  219.                 -pivots 1
  220.                 -textures 1
  221.                 -fogging 0
  222.                 -shadows 0
  223.                 -smoothWireframe 0
  224.                 -viewSelected false
  225.                 $editorName;
  226.  
  227.             if (`isTrue "MayaCreatorExists"` && 
  228.                 (`licenseCheck -m "edit" -typ "particlePaint"`)) {
  229.                 modelEditor -e -strokes 1 $editorName;
  230.             }
  231.  
  232.             // disable isolate select auto update
  233.             editor -edit -lck -mainListConnection "activeList" $editorName;
  234.  
  235.  
  236.             $panelLabel = "Persp View";
  237.             $panelName = `sceneUIReplacement -getNextPanel "modelPanel" $panelLabel`;
  238.             if ("" == $panelName) {
  239.                 $panelName = `modelPanel -mbv $menusOkayInPanels
  240.                                          -parent $gMainPane -l $panelLabel`;
  241.             } else {
  242.                 modelPanel -edit -l $panelLabel $panelName;
  243.             }
  244.             $editorName = $panelName;
  245.             modelEditor -e 
  246.                 -camera `findStartUpCamera persp`
  247.                 -useInteractiveMode 0
  248.                 -displayLights "default" 
  249.                 -displayAppearance "wireframe" 
  250.                 -activeOnly 0
  251.                 -wireframeOnShaded 0
  252.                 -bufferMode "double" 
  253.                 -twoSidedLighting 1
  254.                 -backfaceCulling 0
  255.                 -xray 0
  256.                 -st 1
  257.                 -displayTextures 0
  258.                 -textureMaxSize 1024
  259.                 -nurbsCurves 1
  260.                 -nurbsSurfaces 1
  261.                 -polymeshes 1
  262.                 -subdivSurfaces 1
  263.                 -planes 1
  264.                 -lights 1
  265.                 -cameras 1
  266.                 -joints 1
  267.                 -ikHandles 1
  268.                 -deformers 1
  269.                 -dynamics 1
  270.                 -locators 1
  271.                 -dimensions 1
  272.                 -handles 1
  273.                 -pivots 1
  274.                 -textures 1
  275.                 -fogging 0
  276.                 -shadows 0
  277.                 -smoothWireframe 0
  278.                 -viewSelected false
  279.                 $editorName;
  280.  
  281.             if (`isTrue "MayaCreatorExists"` && 
  282.                 (`licenseCheck -m "edit" -typ "particlePaint"`)) {
  283.                 modelEditor -e -strokes 1 $editorName;
  284.             }
  285.  
  286.             // disable isolate select auto update
  287.             editor -edit -lck -mainListConnection "activeList" $editorName;
  288.         }
  289.  
  290.         if (`exists outlinerPanel`) {
  291.  
  292.             $panelLabel = "Outliner";
  293.             $panelName = `sceneUIReplacement -getNextPanel "outlinerPanel" $panelLabel`;
  294.             if ("" == $panelName) {
  295.                 $panelName = `outlinerPanel
  296.                         -mbv $menusOkayInPanels
  297.                         -unParent -l $panelLabel`;
  298.             } else {
  299.                 outlinerPanel -edit -l $panelLabel $panelName;
  300.                 // Save the current state of the outliner
  301.                 //
  302.                 saveOutlinerSettings;
  303.             }
  304.             $editorName = $panelName;
  305.             outlinerEditor -e 
  306.                 -mainListConnection "worldList" 
  307.                 -selectionConnection "modelList" 
  308.                 -showShapes 0
  309.                 -showAttributes 0
  310.                 -showConnected 0
  311.                 -showAnimCurvesOnly 0
  312.                 -autoExpand 0
  313.                 -showDagOnly 1
  314.                 -ignoreDagHierarchy 0
  315.                 -expandConnections 0
  316.                 -showCompounds 1
  317.                 -showNumericAttrsOnly 0
  318.                 -highlightActive 1
  319.                 -autoSelectNewObjects 0
  320.                 -doNotSelectNewObjects 0
  321.                 -transmitFilters 0
  322.                 -showSetMembers 1
  323.                 -setFilter defaultSetFilter
  324.                 $editorName;
  325.             // Apply any saved state settings
  326.             //
  327.             applyOutlinerSettings ($editorName);
  328.         }
  329.  
  330.         if (`isTrue AnimationExists`) {
  331.  
  332.             $panelLabel = "Graph Editor";
  333.             $panelName = `sceneUIReplacement -getNextScriptedPanel "graphEditor" $panelLabel`;
  334.             if ("" == $panelName) {
  335.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels 
  336.                                 -unParent -type "graphEditor" -l $panelLabel`;
  337.             } else {
  338.                 scriptedPanel -edit -l $panelLabel $panelName;
  339.             }
  340.             $editorName = ($panelName+"OutlineEd");
  341.             outlinerEditor -e 
  342.                 -mainListConnection "graphEditorList" 
  343.                 -selectionConnection "graphEditor1FromOutliner" 
  344.                 -highlightConnection "keyframeList" 
  345.                 -showShapes 1
  346.                 -showAttributes 1
  347.                 -showConnected 1
  348.                 -showAnimCurvesOnly 1
  349.                 -autoExpand 1
  350.                 -showDagOnly 0
  351.                 -ignoreDagHierarchy 0
  352.                 -expandConnections 1
  353.                 -showCompounds 0
  354.                 -showNumericAttrsOnly 1
  355.                 -highlightActive 0
  356.                 -autoSelectNewObjects 1
  357.                 -doNotSelectNewObjects 0
  358.                 -transmitFilters 1
  359.                 -showSetMembers 0
  360.                 $editorName;
  361.  
  362.             $editorName = ($panelName+"GraphEd");
  363.             animCurveEditor -e 
  364.                 -mainListConnection "graphEditor1FromOutliner" 
  365.                 -displayKeys 1
  366.                 -displayTangents 0
  367.                 -displayActiveKeys 0
  368.                 -displayActiveKeyTangents 1
  369.                 -displayInfinities 0
  370.                 -autoFit 0
  371.                 -snapTime "integer"
  372.                 -snapValue "none" 
  373.                 -smoothness "fine" 
  374.                 -resultSamples 1
  375.                 $editorName;
  376.  
  377.             $panelLabel = "Dope Sheet";
  378.             $panelName = `sceneUIReplacement -getNextScriptedPanel "dopeSheetPanel" $panelLabel`;
  379.             if ("" == $panelName) {
  380.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  381.                                 -unParent -type "dopeSheetPanel" -l $panelLabel`;
  382.             } else {
  383.                 scriptedPanel -edit -l $panelLabel $panelName;
  384.             }
  385.             $editorName = ($panelName+"OutlineEd");
  386.             outlinerEditor -e 
  387.                 -mainListConnection "animationList" 
  388.                 -selectionConnection "dopeSheetPanel1OutlinerSelection" 
  389.                 -highlightConnection keyframeList
  390.                 -showShapes 1
  391.                 -showAttributes 1
  392.                 -showConnected 1
  393.                 -showAnimCurvesOnly 1
  394.                 -autoExpand 0
  395.                 -showDagOnly 0
  396.                 -ignoreDagHierarchy 0
  397.                 -expandConnections 1
  398.                 -showCompounds 1
  399.                 -showNumericAttrsOnly 1
  400.                 -highlightActive 0
  401.                 -autoSelectNewObjects 0
  402.                 -doNotSelectNewObjects 1
  403.                 -transmitFilters 0
  404.                 -showSetMembers 0
  405.                 $editorName;
  406.  
  407.             $editorName = ($panelName+"DopeSheetEd");
  408.             dopeSheetEditor -e 
  409.                 -mainListConnection "dopeSheetPanel1FromOutliner" 
  410.                 -highlightConnection "dopeSheetPanel1OutlinerSelection" 
  411.                 -displayKeys 1
  412.                 -displayTangents 0
  413.                 -displayActiveKeys 0
  414.                 -displayActiveKeyTangents 0
  415.                 -displayInfinities 0
  416.                 -autoFit 0
  417.                 -snapTime "integer" 
  418.                 -snapValue "none" 
  419.                 -outliner "dopeSheetPanel1OutlineEd" 
  420.                 $editorName;
  421.  
  422.             $panelLabel = "Trax Editor";
  423.             $panelName = `sceneUIReplacement -getNextScriptedPanel "clipEditorPanel" $panelLabel`;
  424.             if ("" == $panelName) {
  425.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  426.                                 -unParent -type "clipEditorPanel" -l $panelLabel`;
  427.             } else {
  428.                 scriptedPanel -edit -l $panelLabel $panelName;
  429.             }
  430.  
  431.             $editorName = ($panelName+"ClipEditor");
  432.             
  433.             // For now, the clip editor has nothing to be changed.  Leaving
  434.             // in the edit command for future reference.  -divin
  435.             clipEditor -e 
  436.                 $editorName;
  437.         }
  438.  
  439.                                    
  440.         if (`exists hyperGraph`) {
  441.  
  442.             $panelLabel = "Hypergraph";
  443.             $panelName = `sceneUIReplacement -getNextScriptedPanel "hyperGraphPanel" $panelLabel`;
  444.             if ("" == $panelName) {
  445.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels 
  446.                                 -unParent -type "hyperGraphPanel" -l $panelLabel`;
  447.             } else {
  448.                 scriptedPanel -edit -l $panelLabel $panelName;
  449.             }
  450.             $editorName = ($panelName+"HyperGraphEd");
  451.             hyperGraph -e
  452.                 -image ""
  453.                 -graphType "DAG" 
  454.                 $editorName;
  455.  
  456.             $panelLabel = "Hypershade";
  457.             $panelName = `sceneUIReplacement -getNextScriptedPanel "hyperShadePanel" $panelLabel`;
  458.             if ("" == $panelName) {
  459.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels 
  460.                                 -unParent -type "hyperShadePanel" -l $panelLabel`;
  461.             } else {
  462.                 scriptedPanel -edit -l $panelLabel $panelName;
  463.             }
  464.  
  465.             $panelLabel = "Visor";
  466.             $panelName = `sceneUIReplacement -getNextScriptedPanel "visorPanel" $panelLabel`;
  467.             if ("" == $panelName) {
  468.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels 
  469.                                 -unParent -type "visorPanel" -l $panelLabel`;
  470.             } else {
  471.                 scriptedPanel -edit -l $panelLabel $panelName;
  472.             }
  473.         }
  474.  
  475.         if (`isTrue "PolyTextureExists"`)
  476.         {
  477.  
  478.             $panelLabel = "UV Texture Editor";
  479.             $panelName = `sceneUIReplacement -getNextScriptedPanel "polyTexturePlacementPanel" $panelLabel`;
  480.             if ("" == $panelName) {
  481.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels 
  482.                                 -unParent -type "polyTexturePlacementPanel" -l $panelLabel`;
  483.             } else {
  484.                 $label = `panel -q -label $panelName`;
  485.                 scriptedPanel -edit -l $panelLabel $panelName;
  486.             }
  487.         }
  488.  
  489.  
  490.         if (`isTrue "RenderingExists"`) {
  491.             $panelLabel = "Multilister";
  492.             $panelName = `sceneUIReplacement -getNextScriptedPanel "multiListerPanel" $panelLabel`;
  493.             if ("" == $panelName) {
  494.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  495.                                 -unParent -type "multiListerPanel" -l $panelLabel`;
  496.             } else {
  497.                 $label = `panel -q -label $panelName`;
  498.                 scriptedPanel -edit -l $panelLabel $panelName;
  499.             }
  500.  
  501.             if (true) {
  502.                 $panelLabel = "Render View";
  503.                 $panelName = `sceneUIReplacement -getNextScriptedPanel "renderWindowPanel" $panelLabel`;
  504.                 if ("" == $panelName) {
  505.                     $panelName = `scriptedPanel -mbv $menusOkayInPanels
  506.                                     -unParent -type "renderWindowPanel" -l $panelLabel renderView`;
  507.                 } else {
  508.                     $label = `panel -q -label $panelName`;
  509.                     scriptedPanel -edit -l $panelLabel $panelName;
  510.                 }
  511.             }
  512.         }
  513.  
  514.         //if (`exists blendshapePanel`) {
  515.         if (`isTrue DeformersExists`) {
  516.  
  517.             $panelLabel = "Blend Shape";
  518.             $panelName = `sceneUIReplacement -getNextPanel "blendShapePanel" $panelLabel`;
  519.             if ("" == $panelName) {
  520.                 $panelName = `blendShapePanel -mbv $menusOkayInPanels -unParent -l $panelLabel`;
  521.             } else {
  522.                 $label = `panel -q -label $panelName`;
  523.                 blendShapePanel -edit -l $panelLabel $panelName;
  524.             }
  525.         }
  526.  
  527.         if (`isTrue "DynamicsExists"`) {
  528.  
  529.             $panelLabel = "Dynamic Relationships";
  530.             $panelName = `sceneUIReplacement -getNextScriptedPanel "dynRelEdPanel" $panelLabel`;
  531.             if ("" == $panelName) {
  532.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  533.                                 -unParent -type "dynRelEdPanel" -l $panelLabel`;
  534.             } else {
  535.                 $label = `panel -q -label $panelName`;
  536.                 scriptedPanel -edit -l $panelLabel $panelName;
  537.             }
  538.         }
  539.  
  540.         if (`exists devicePanel`) {
  541.             $panelLabel = "Devices";
  542.             $panelName = `sceneUIReplacement -getNextPanel "devicePanel" $panelLabel`;
  543.             if ("" == $panelName) {
  544.                 $panelName = `devicePanel -mbv $menusOkayInPanels
  545.                                 -unParent -l $panelLabel`;
  546.             } else {
  547.                 $label = `panel -q -label $panelName`;
  548.                 devicePanel -edit -l $panelLabel $panelName;
  549.             }
  550.         }
  551.  
  552.         if (`exists relationshipEditor`) {
  553.             $panelLabel = "Relationship Editor";
  554.             $panelName = 
  555.                 `sceneUIReplacement 
  556.                          -getNextScriptedPanel"relationshipPanel" 
  557.                          $panelLabel`;
  558.  
  559.             if ("" == $panelName) {
  560.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  561.                                 -unParent -type "relationshipPanel" 
  562.                                 -l $panelLabel`;
  563.             } else {
  564.                 scriptedPanel -edit -l $panelLabel $panelName;
  565.             }
  566.         }
  567.  
  568.         if (`exists referenceEditorPanel`) {
  569.             $panelLabel = "Reference Editor";
  570.             $panelName = 
  571.                 `sceneUIReplacement 
  572.                          -getNextScriptedPanel"referenceEditorPanel" 
  573.                          $panelLabel`;
  574.  
  575.             if ("" == $panelName) {
  576.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  577.                                 -unParent -type "referenceEditorPanel" 
  578.                                 -l $panelLabel`;
  579.             } else {
  580.                 $label = `panel -q -label $panelName`;
  581.                 scriptedPanel -edit -l $panelLabel $panelName;
  582.             }
  583.         }
  584.  
  585.  
  586.         if (`exists componentEditorPanel`) {
  587.             $panelLabel = "Component Editor";
  588.             $panelName = 
  589.                 `sceneUIReplacement 
  590.                          -getNextScriptedPanel"componentEditorPanel" 
  591.                          $panelLabel`;
  592.  
  593.             if ("" == $panelName) {
  594.                 $panelName = `scriptedPanel -mbv $menusOkayInPanels
  595.                                 -unParent -type "componentEditorPanel" 
  596.                                 -l $panelLabel`;
  597.             } else {
  598.                 $label = `panel -q -label $panelName`;
  599.                 scriptedPanel -edit -l $panelLabel $panelName;
  600.             }
  601.         }
  602.  
  603.  
  604.         if (`isTrue MayaCreatorExists`) {
  605.             $panelLabel = "Paint Effects";
  606.             $panelName = `sceneUIReplacement -getNextScriptedPanel "dynPaintScriptedPanelType" $panelLabel`;
  607.             if ("" == $panelName) {
  608.                 $panelName = `scriptedPanel    -unParent -type "dynPaintScriptedPanelType" -l $panelLabel dynPaintScriptedPanel`;
  609.             } else {
  610.                 scriptedPanel -edit -l $panelLabel $panelName;
  611.             }
  612.             dynPaintPanel $panelName;
  613.         }
  614.  
  615. //        if (`about -nt`) {
  616. //            $panelLabel = "Help Panel";
  617. //            $panelName = `sceneUIReplacement -getNextScriptedPanel "helpPanel" $panelLabel`;
  618. //            if ("" == $panelName) {
  619. //                $panelName = `scriptedPanel -unParent -type "helpPanel" -l $panelLabel`;
  620. //            } else {
  621. //                scriptedPanel -edit -l $panelLabel $panelName;
  622. //            }
  623. //        }
  624.  
  625.         sceneUIReplacement -deleteRemaining;
  626.         sceneUIReplacement -clear;
  627.  
  628.         setNamedPanelLayout $gNewScenePanelConfig;
  629.  
  630.         panelHistory -e -clear mainPanelHistory;
  631.         setFocus `paneLayout -q -p1 $gMainPane`;
  632.  
  633.     }
  634.         
  635. }
  636.